home
***
CD-ROM
|
disk
|
other
***
search
/
SGI Hot Mix 8
/
Hot Mix 8.iso
/
.all
/
demos
/
ICS
/
install.bx
(
.txt
)
< prev
next >
Wrap
Text File
|
1994-06-22
|
24KB
|
1,126 lines
#!/bin/sh
# Install Script for the Builder Xcessory.
# Files will go in /usr/lib/X11 or $OPENWINHOME/lib as default.
# Set DEBUGYN to Y in order to run in debug mode.
DEBUGYN=N
DEBUG()
{
if test "$DEBUGYN" != "Y"
then
$@
fi
}
#
# For systems which don't support mkdir -p, we use mkdirhier
# adapted from the mkdirhier.sh script in the X11 distribution.
#
Mkdirhier()
{
for f in $*; do
parts=`echo $f | sed 's,\(.\)/\(.\),\1 \2,g' | sed 's,/$,,'`;
path="";
for p in $parts; do
if [ x"$path" = x ]
then
dir=$p
else
dir=$path/$p
fi
if [ ! -d $dir ]
then
mkdir $dir
chmod a+rx $dir
fi
path=$dir
done
done
}
Log()
{
echo $1 >> $LOGFILE
echo $1
}
Clear()
{
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
}
Title()
{
echo "================================================================================"
echo "$1"
echo "================================================================================"
}
Status()
{
OUT=$1
echo ""
case "$WHERE"
in
tape)
FILESRC="Magnetic Media"
MEDIA=$TPDRIVE
;;
cdrom)
FILESRC="CD-ROM"
MEDIA=${CDROM}
;;
*)
FILESRC="Directory"
MEDIA=$FROM_DIR
;;
esac
${OUT} "[1] Installation From: $FILESRC"
${OUT} "[2] BX Files Loaded from: $MEDIA"
${OUT} ""
${OUT} "[3] BX Home Directory: $TMP_DEST"
${OUT} "[4] Binary Linked in: $BIN_DEST"
${OUT} "[5] AppDefaults Linked in: $APP_DEST"
${OUT} "[6] Manpages Linked in: $MAN_DEST"
${OUT} "[7] X Data Files Located in: $SERVERLIB"
}
PromptUser()
{
CONTINUE=NO
while test "$CONTINUE" = "NO"
do
echo "$1 (? for Help)"
echo ${DASHN} "[$2]->${SLASHC}"
read INPUT
case "$INPUT"
in
\? )
InstallHelp
;;
* )
if test "$INPUT" = ""
then
USERPROMPT="$2"
else
USERPROMPT="$INPUT"
fi
CONTINUE=YES
;;
esac
done
}
AwaitEnter()
{
ESCAPE=N
echo ${DASHN} "Press [ENTER] to continue [X] to escape...${SLASHC}"
read INPUT
case "$INPUT"
in
[xX] )
ESCAPE=Y
;;
* )
ESCAPE=N
;;
esac
}
InstallHelp()
{
Title "Builder Xcessory Installation Help: $HELPTITLE"
case "$HELP"
in
main_menu )
echo ""
echo "Installation From - indicates type of installation."
echo ""
echo "BX Home Directory - indicates the directory in which all BX files"
echo " will reside. This directory must be writable"
echo " and large enough to hold the BX distribution."
echo " On systems which support symbolic file links,"
echo " This is the only location in which BX files"
echo " physically reside. All other changes are"
echo " symbolic file links."
echo ""
echo "BX Files Loaded from - indicates source of BX files."
echo ""
echo "Binary Linked in - indicates directory in which a link to the BX"
echo " binary will appear."
echo ""
echo ""
echo ""
echo ""
echo ""
AwaitEnter
if test "$ESCAPE" = "Y"
then
return
fi
Title "Builder Xcessory Installation Help: $HELPTITLE"
echo ""
echo "AppDefaults Linked in - indicates directory in which a link to the"
echo " Builder Xcessory application defaults file"
echo " will appear."
echo ""
echo "Manpages Linked in - indicates the top of the manual page directory."
echo " Manual pages for the Builder Xcessory and"
echo " Flexible License Manager will be linked in"
echo " the appropriate sub-directories."
echo ""
echo "X Data Files Located in - indicates the directory in which various X"
echo " data files are located. The installation"
echo " scripts examines the XKeysymDB file in this"
echo " directory to determine if the OSF Virtual Keysyms"
echo " are defined. If they are not, they are added to"
echo " the XKeysymDB in this directory."
echo ""
echo ""
echo ""
echo ""
AwaitEnter
;;
ow )
echo ""
echo "Under OpenWindows, the following directories are located differently than the"
echo "corresponding directories in the MIT Sample X Implementation."
echo ""
echo ""
echo " MIT OpenWindows"
echo " -----------------------------------------------------------"
echo ""
echo " /usr/lib/X11 /usr/openwin/lib"
echo " /usr/lib/X11/app-defaults /usr/openwin/lib/app-defaults"
echo " /usr/bin/X11 /usr/openwin/bin"
echo " /usr/man/* /usr/openwin/man/*"
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
AwaitEnter
;;
filerm )
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo "Responding with 'Y' will remove the copies of the Builder Xcessory"
echo "files in this directory. These files have already been moved to the"
echo "BX home directory. Responding with 'N' will leave the files unchanged."
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
AwaitEnter
;;
links )
echo ""
echo ""
echo ""
echo "Executing the next step will set up several symbolic links on this system"
echo "to the BX Home directory tree."
echo ""
echo "In the following table, {BX} is used to represent"
echo " ${TMP_DEST}"
echo ""
echo "Source -> Link"
echo "-----------------------------------------------------------------------"
echo "{BX}/bin/bx ${BIN_DEST}/bx"
echo "{BX}/BuilderXcessory ${APP_DEST}/BuilderXcessory"
echo "{BX}/man/man1/... ${MAN_DEST}/man1/..."
echo "{BX}/man/man5/... ${MAN_DEST}/man5/..."
echo ""
echo ""
echo ""
echo ""
AwaitEnter
;;
* )
;;
esac
Clear
}
#
# Try to get a reasonable default for the tape drive.
# Do not change the SYSTEM=sgi5 line.
SYSTEM=sgi5
FROM_DIR=`pwd`
WHERE=tape
DASHN=-n
SLASHC=" "
UNCOMPRESS=n
SHORT_NAMES=n
OPENWIN=n
CATMAN=n
LN="ln -s"
SH=/bin/sh
MKDIR="mkdir -p"
CDROM="/cdrom"
SYSDIR="unknown"
USE_TAR="y"
case $SYSTEM
in
sun4)
TPDRIVE=/dev/rst8
OPENWIN=y
HOSTNAME=`/bin/hostname`
CDROM=/cdrom
SYSDIR=.Solaris_1
;;
sun4-cd)
TPDRIVE=/dev/rst8
WHERE=cdrom
CDROM=/cdrom
SYSDIR=.Solaris_1
OPENWIN=y
HOSTNAME=`/bin/hostname`
USE_TAR="n"
;;
sun4f)
TPDRIVE=/dev/rfd0
UNCOMPRESS=y
OPENWIN=y
HOSTNAME=`/bin/hostname`
CDROM=/cdrom
SYSDIR=.Solaris_1
;;
ds3100)
TPDRIVE=/dev/rmt0h
SH=/bin/sh5
DASHN=""
SLASHC=" \c"
HOSTNAME=`/bin/hostname`
CDROM=/cdrom
SYSDIR=.Ultrix_4x
;;
ds3100-cd)
WHERE="cdrom"
TPDRIVE=/dev/rmt0h
SH=/bin/sh5
DASHN=""
SLASHC=" \c"
HOSTNAME=`/bin/hostname`
CDROM=/cdrom
SYSDIR=.Ultrix_4x
;;
osf)
CDROM=/cdrom
SYSDIR=.Axposf_1
TPDRIVE=/dev/rmt0a
DASHN=""
SLASHC=" \c"
OPENWIN=n
HOSTNAME=`/bin/hostname`
;;
osf-cd)
WHERE="cdrom"
CDROM=/cdrom
SYSDIR=.Axposf_1
TPDRIVE=/dev/rmt0a
DASHN=""
SLASHC=" \c"
OPENWIN=n
HOSTNAME=`/bin/hostname`
;;
sgi)
CDROM=/cdrom
SYSDIR=.Irix_4
TPDRIVE=/dev/tapens
DASHN=""
SLASHC=" \c"
HOSTNAME=`/usr/bsd/hostname`
;;
sgi-cd)
WHERE=cdrom
CDROM=/cdrom
SYSDIR=.Irix_4
TPDRIVE=/dev/tapens
DASHN=""
SLASHC=" \c"
HOSTNAME=`/usr/bsd/hostname`
;;
sgi5)
CDROM=/cdrom
SYSDIR=.Irix_5
TPDRIVE=/dev/tape
DASHN=""
SLASHC=" \c"
HOSTNAME=`/usr/bsd/hostname`
;;
sgi5-cd)
WHERE=cdrom
CDROM=/cdrom
SYSDIR=.Irix_5
TPDRIVE=/dev/tape
DASHN=""
SLASHC=" \c"
HOSTNAME=`/usr/bsd/hostname`
;;
hp700)
CDROM=/cdrom
SYSDIR=.Hpux_9
TPDRIVE=/dev/rmt/0m
DASHN=""
SLASHC=" \c"
OPENWIN=n
SHORT_NAMES=y
HOSTNAME=`/bin/hostname`
;;
hp700-cd)
WHERE=cdrom
CDROM=/cdrom
SYSDIR=.Hpux_9
TPDRIVE=/dev/rmt/0m
DASHN=""
SLASHC=" \c"
OPENWIN=n
SHORT_NAMES=y
HOSTNAME=`/bin/hostname`
;;
ibm)
CDROM=/cdrom
SYSDIR=.Aix_324
TPDRIVE=/dev/rmt0
DASHN=""
SLASHC=" \c"
MKDIR="Mkdirhier"
HOSTNAME=`/bin/hostname`
;;
ibm-cd)
WHERE=cdrom
CDROM=/cdrom
SYSDIR=.Aix_324
TPDRIVE=/dev/rmt0
DASHN=""
SLASHC=" \c"
MKDIR="Mkdirhier"
HOSTNAME=`/bin/hostname`
;;
sco)
UNCOMPRESS=y
CDROM=/cdrom
SYSDIR=.Odt_3
TPDRIVE=/dev/fd0
DASHN=""
SLASHC=" \c"
SHORT_NAMES=y
LN="cp"
HOSTNAME=`/usr/bin/hostname`
;;
sco-cd)
WHERE=cdrom
CDROM=/cdrom
SYSDIR=.Odt_3
UNCOMPRESS=n
TPDRIVE=/dev/fd0
DASHN=""
SLASHC=" \c"
SHORT_NAMES=y
LN="cp"
HOSTNAME=`/usr/bin/hostname`
;;
mips)
CDROM=/cdrom
SYSDIR=.Mips_5
TPDRIVE=/dev/rmt/h0
DASHN=""
SLASHC=" \c"
NO_LMGR="y"
HOSTNAME=`/usr/net/hostname`
;;
mips-cd)
WHERE=cdrom
CDROM=/cdrom
SYSDIR=.Mips_5
TPDRIVE=/dev/rmt/h0
DASHN=""
SLASHC=" \c"
NO_LMGR="y"
HOSTNAME=`/usr/net/hostname`
;;
*)
TPDRIVE=/dev/rst8
HOSTNAME=`/bin/hostname`
;;
esac
#
# Installation on an Open Windows platform uses different directories
#
if test "$OPENWIN" = "y"
then
HELP=ow
HELPTITLE="Window System"
echo $HELPTITLE
CONT=NO
while test "$CONT" = "NO"
do
Title "Builder Xcessory Installation"
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo "The MIT X11 Distribution directory structure differs from the"
echo "Sun Open Windows X11/NeWS directory structure. In order for"
echo "the Builder Xcessory to be installed properly, the X11 server"
echo "being used must be known."
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
HELP=ow
HELPTITLE="Window System"
PromptUser "Do you want to install for Open Windows?" "y"
if test "$USERPROMPT" != ""
then
case "$USERPROMPT"
in
[Nn] | [Nn][Oo])
USEOPENWIN=NO
CONT=YES
;;
[Yy] | [Yy][Ee] | [Yy][Ee][Ss])
USEOPENWIN=YES
CONT=YES
;;
*)
echo ""
echo "Please answer y or n"
CONT=NO
;;
esac
else
CONT=YES
USEOPENWIN=YES
fi
done
else
USEOPENWIN=NO
fi
#
# Destination Defaults
#
if test "${USEOPENWIN}" = "YES"
then
if test "${OPENWINHOME}" != ""
then
SERVERLIB=${OPENWINHOME}/lib
BX_HOME=${OPENWINHOME}/lib
BIN_DEST=${OPENWINHOME}/bin
MAN_DEST=${OPENWINHOME}/man
else
SERVERLIB=/usr/openwin/lib
BX_HOME=/usr/openwin/lib
BIN_DEST=/usr/openwin/bin
MAN_DEST=/usr/openwin/man
fi
else
SERVERLIB=/usr/lib/X11
BX_HOME=/usr/lib/X11
BIN_DEST=/usr/bin/X11
MAN_DEST=/usr/man
fi
APP_DEST=${SERVERLIB}/app-defaults
if test "$CATMAN" = "y"
then
SUB_MAN=cat
else
SUB_MAN=man
fi
if test "${SHORT_NAMES}" = "y"
then
OLD_DEST=${BX_HOME}/bX
TMP_DEST=${BX_HOME}/bX
STANDARD_LIB_DEST=/usr/lib/X11/bX
APP_SRC=BX
HH_APP_SRC=HyperHelp
else
OLD_DEST=${BX_HOME}/builderXcessory
TMP_DEST=${BX_HOME}/builderXcessory
STANDARD_LIB_DEST=/usr/lib/X11/builderXcessory
APP_SRC=BuilderXcessory
HH_APP_SRC=HyperHelp
fi
if test "$UNCOMPRESS" = "y"
then
LIST="./bin/bx.Z ./XmAppl.uil"
else
LIST="./bin/bx ./XmAppl.uil"
fi
BIN_SRC=bin/bx
LIB_SRC=lib/bx.o
KEYSYMS=bindings/XKeysymDB
ALL_MAN=man
MAN_SRC=${ALL_MAN}/${SUB_MAN}
REL_NOTES=RELEASE_NOTES
BUG_RPT=BUG_REPORT
MAN1_LIST="bx.1 lmgrd.1 lmstat.1 lmhostid.1 lmdown.1 lmremove.1 lmreread.1"
MAN5_LIST="license.dat.5 license.opt.5"
#
# Misc variables.
#
LOGFILE=/tmp/BXINST_LOG.${HOSTNAME}
echo "" > $LOGFILE
cwd='/bin/pwd'
CONT=NO
if [ $DEBUGYN = "Y" ]
then
echo Running Builder Xcessory installation script in debug mode.
echo No commands which cause changes will be executed.
fi
Log "Installation of the Builder Xcessory on `date`."
DESTOK=N
CONT=NO
while test "$CONT" = "NO"
do
HELP="main_menu"
HELPTITLE="Main Menu"
Title "Builder Xcessory Installation"
Status "echo"
echo ""
echo 1. Change BX Installation Source Type
echo 2. Change BX Installation Source
echo 3. Change BX Home Directory.
echo 4. Change Binary Directory.
echo 5. Change Application Defaults Directory.
echo 6. Change Manual Pages Directory.
echo 7. Change X Data Files Directory.
echo I. INSTALL BX AS CONFIGURED.
echo Q. QUIT.
echo ""
echo ${DASHN} "Selection (? for Help):${SLASHC}"
read Z
echo ""
case "$Z"
in
[Qq])
Log "Quit by user from Main Menu."
exit
;;
[Ii])
CONT=YES
;;
\?)
InstallHelp
;;
1)
if test "$WHERE" = "tape"
then
WHERE="cdrom"
elif test "$WHERE" = "cdrom"
then
WHERE="directory"
else
WHERE="tape"
fi
;;
2)
if test "$WHERE" = "tape"
then
PromptUser "Enter new media device name" ${TPDRIVE}
TPDRIVE=${USERPROMPT}
elif test "$WHERE" = "cdrom"
then
PromptUser "Enter the CD-ROM Mount point" ${CDROM}
CDROM=${USERPROMPT}
FROM_DIR=${CDROM}/${SYSDIR}
else
PromptUser "Enter new directory name" ${FROM_DIR}
FROM_DIR=${USERPROMPT}
fi
;;
3)
PromptUser "Enter new BX home directory" $TMP_DEST
OLD_DEST=${TMP_DEST}
TMP_DEST=${USERPROMPT}
if test "$TMP_DEST" != "$OLD_DEST"
then
DESTOK=N
fi
;;
4)
PromptUser "Enter new binary directory" ${BIN_DEST}
BIN_DEST=${USERPROMPT}
;;
5)
PromptUser "Enter new defaults directory" ${APP_DEST}
APP_DEST=${USERPROMPT}
;;
6)
PromptUser "Enter new manual page directory" ${MAN_DEST}
MAN_DEST=${USERPROMPT}
;;
7)
PromptUser "Enter the X data file directory" ${SERVERLIB}
SERVERLIB=${USERPROMPT}
;;
*)
;;
esac
if [ -d $TMP_DEST -a "$DESTOK" = "N" ]
then
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
Title "W A R N I N G"
echo ""
echo ""
echo ""
echo "${TMP_DEST} exists"
SET=NO
while test "$SET" = "NO"
do
echo ""
PromptUser "Do you want to use $TMP_DEST?" "y"
case "$USERPROMPT"
in
[Yy] | [Yy][Ee] | [Yy][Ee]{Ss] )
echo ""
echo ""
echo "PLEASE NOTE:"
echo ""
echo "Any file names in ${TMP_DEST} which conflict"
echo "with files in the distribution will be overwritten"
echo "by the files in the distribution if you continue"
echo "the installation. If you do not want this to"
echo "happen, you must manually backup the contents"
echo "of ${TMP_DEST}."
echo ""
echo ""
echo ""
AwaitEnter
DESTOK="Y"
SET="YES"
;;
[Nn] | [Nn][Oo] )
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
echo "Resetting BX File destination to ${OLD_DEST}"
echo ""
echo ""
echo ""
echo ""
echo ""
echo ""
AwaitEnter
CONT="NO"
SET="YES"
TMP_DEST=${OLD_DEST}
;;
* )
echo ""
echo "Please answer 'y' or 'n'"
SET="NO"
;;
esac
done
fi
done
Clear
Title "Installing"
Status "Log"
echo ""
if [ ! -d "$TMP_DEST" ]
then
Log "$TMP_DEST does not exist...creating"
DEBUG $MKDIR $TMP_DEST
if [ ! -d "$TMP_DEST" ]
then
Log "Cannot create BX home directory ${TMP_DEST}. Aborting."
DEBUG exit
fi
fi
# Time to deal with the installation source.
if [ $DEBUGYN = "Y" ]
then
echo ""
echo "Would load files from tape via tar here."
else
case "$WHERE"
in
tape )
echo ""
Log "Loading Builder Xcessory Files from tape (${TPDRIVE})."
Log "Executing the command:"
Log " (cd $TMP_DEST; tar xf ${TPDRIVE})"
(cd $TMP_DEST; tar xf ${TPDRIVE})
if [ $? -ne 0 ]
then
echo ""
Title "ERROR - File Extraction Failed"
echo ""
Log "File extraction Failed - Aborting..."
DEBUG exit
fi
;;
directory )
echo ""
Log "Copying BX Files to ${TMP_DEST}."
cd ${FROM_DIR}
tar cf - . | (cd $TMP_DEST; tar xf -)
if [ $? -ne 0 ]
then
echo ""
Title "ERROR - File Move Failed"
echo ""
Log "File move failed - Aborting..."
DEBUG exit
fi
;;
cdrom )
echo ""
FROM_DIR=${CDROM}/${SYSDIR}
Log "Installing Builder Xcessory from ${FROM_DIR}."
cd ${FROM_DIR}
if [ "${USE_TAR}" = "y" ]
then
tar cf - . | (cd $TMP_DEST; tar xf -)
else
cp -R ./* $TMP_DEST
fi
if [ $? -ne 0 ]
then
echo ""
Title "ERROR - File Move Failed"
echo ""
Log "File move failed - Aborting..."
DEBUG exit
fi
;;
esac
fi
echo ""
AwaitEnter
Clear
Title "Creating System Links"
echo ""
if test "$DEBUGYN" = "Y"
then
LINKFILE=./links
else
LINKFILE=${TMP_DEST}/links
fi
HELP="links"
HELPTITLE="System Links"
PromptUser "Do you want to create the links for BX on this system?" "y"
case "$USERPROMPT"
in
[Yy] | [Yy][Ee] | [Yy][Ee][Ss])
CONT="Y"
;;
*)
CONT="N"
;;
esac
if test "$CONT" = "Y"
then
Clear
Title "Creating System Links"
echo ""
Log "Creating links..."
if test "$DEBUGYN" = "N"
then
sed -e "s?${STANDARD_LIB_DEST}?${TMP_DEST}?g" \
${TMP_DEST}/${APP_SRC}.ad > ${TMP_DEST}/${APP_SRC}.tmp
fi
DEBUG mv ${TMP_DEST}/${APP_SRC}.tmp ${TMP_DEST}/${APP_SRC}.${HOSTNAME}
if test "$UNCOMPRESS" = "y"
then
WHEREAMI=`pwd`
DEBUG cd ${TMP_DEST}
DEBUG uncompress ${BIN_SRC}
DEBUG cd ${WHEREAMI}
fi
Log "Removing old links (if they exist)"
if test -f ${LINKFILE}
then
DEBUG rm -f `cat ${LINKFILE}`
fi
DEBUG rm -f ${LINKFILE}
DEBUG rm -f ${BIN_DEST}/bx
DEBUG rm -f ${APP_DEST}/${APP_SRC}
DEBUG rm -f ${APP_DEST}/${HH_APP_SRC}
DEBUG rm -f /usr/lib/bx.o
for i in $MAN1_LIST
do
DEBUG rm -f ${MAN_DEST}/${SUB_MAN}1/$i
done
for i in $MAN5_LIST
do
DEBUG rm -f ${MAN_DEST}/${SUB_MAN}5/$i
done
echo ""
echo "In the following, {BX} is used to represent"
echo " ${TMP_DEST}."
echo ""
echo ${BIN_DEST}/bx >> ${LINKFILE}
if [ -d "${BIN_DEST}" ]
then
Log "${LN} {BX}/${BIN_SRC} ${BIN_DEST}/bx"
DEBUG ${LN} ${TMP_DEST}/${BIN_SRC} ${BIN_DEST}/bx
else
Log "${BIN_DEST} does not exist...creating"
DEBUG ${MKDIR} ${BIN_DEST}
Log "${LN} {BX}/${BIN_SRC} ${BIN_DEST}/bx"
DEBUG ${LN} ${TMP_DEST}/${BIN_SRC} ${BIN_DEST}/bx
fi
echo ${APP_DEST}/${APP_SRC} >> ${LINKFILE}
if [ -d "${APP_DEST}" ]
then
Log "${LN} {BX}/${APP_SRC}.${HOSTNAME} ${APP_DEST}/${APP_SRC}"
DEBUG ${LN} ${TMP_DEST}/${APP_SRC}.${HOSTNAME} ${APP_DEST}/${APP_SRC}
else
Log "${APP_DEST} does not exist...creating"
DEBUG ${MKDIR} ${APP_DEST}
Log "${LN} {BX}/${APP_SRC}.${HOSTNAME} ${APP_DEST}/${APP_SRC}"
DEBUG ${LN} ${TMP_DEST}/${APP_SRC}.${HOSTNAME} ${APP_DEST}/${APP_SRC}
fi
echo ${APP_DEST}/${HH_APP_SRC} >> ${LINKFILE}
Log "${LN} {BX}/${HH_APP_SRC} ${APP_DEST}/${HH_APP_SRC}"
DEBUG ${LN} ${TMP_DEST}/${HH_APP_SRC} ${APP_DEST}/${HH_APP_SRC}
if [ -d "${MAN_DEST}/${SUB_MAN}1" ]
then
for i in $MAN1_LIST
do
DEBUG echo ${MAN_DEST}/${SUB_MAN}1/$i >> ${LINKFILE}
Log "${LN} {BX}/${MAN_SRC}1/$i ${MAN_DEST}/${SUB_MAN}1/$i"
DEBUG ${LN} ${TMP_DEST}/${MAN_SRC}1/$i ${MAN_DEST}/${SUB_MAN}1/$i
done
else
Log "${MAN_DEST}/${SUB_MAN}1 does not exist...creating"
DEBUG ${MKDIR} ${MAN_DEST}/${SUB_MAN}1
for i in $MAN1_LIST
do
DEBUG echo ${MAN_DEST}/${SUB_MAN}1/$i >> ${LINKFILE}
Log "${LN} {BX}/${MAN_SRC}1/$i ${MAN_DEST}/${SUB_MAN}1/$i"
DEBUG ${LN} ${TMP_DEST}/${MAN_SRC}1/$i ${MAN_DEST}/${SUB_MAN}1/$i
done
fi
if [ -d "${MAN_DEST}/${SUB_MAN}5" ]
then
for i in $MAN5_LIST
do
DEBUG echo ${MAN_DEST}/${SUB_MAN}5/$i >> ${LINKFILE}
Log "${LN} {BX}/${MAN_SRC}5/$i ${MAN_DEST}/${SUB_MAN}5/$i"
DEBUG ${LN} ${TMP_DEST}/${MAN_SRC}5/$i ${MAN_DEST}/${SUB_MAN}5/$i
done
else
Log "${MAN_DEST}/${SUB_MAN}5 does not exist...creating"
DEBUG ${MKDIR} ${MAN_DEST}/${SUB_MAN}5
for i in $MAN5_LIST
do
DEBUG echo ${MAN_DEST}/${SUB_MAN}5/$i >> ${LINKFILE}
Log "${LN} {BX}/${MAN_SRC}5/$i ${MAN_DEST}/${SUB_MAN}5/$i"
DEBUG ${LN} ${TMP_DEST}/${MAN_SRC}5/$i ${MAN_DEST}/${SUB_MAN}5/$i
done
fi
echo ""
AwaitEnter
#
# See if we need to install the OSF Keysyms
#
Clear
Title "Check for OSF Virtual Keysyms"
echo ""
Log "See if XKeysymDB exists and verify existance of OSF Virtual Keysyms"
if [ -f "${SERVERLIB}/XKeysymDB" ]
then
grep '^osf' ${SERVERLIB}/XKeysymDB > /dev/null
if [ $? -ne 0 ]
then
Log "${SERVERLIB}/XKeysymDB exists but contains no OSF Keysyms"
Log "Adding the OSF Virtual Keysyms to ${SERVERLIB}/XKeysymDB."
Log "Old XKeysymDB saved in ${SERVERLIB}/XKeysymDB.old"
DEBUG cp ${SERVERLIB}/XKeysymDB ${SERVERLIB}/XKeysymDB.old
DEBUG cat ${TMP_DEST}/${KEYSYMS} >> ${SERVERLIB}/XKeysymDB
else
echo ""
Log "${SERVERLIB}/XKeysymDB exists and contains OSF Keysyms"
fi
else
Log "${SERVERLIB}/XKeysymDB does not exist...creating"
DEBUG cp ${TMP_DEST}/${KEYSYMS} ${SERVERLIB}/XKeysymDB
fi
echo ""
echo "In order for the Motif Virtual Bindings to work properly,"
echo "the user of Builder Xcessory will need to have a binding set"
echo "up to map the OSF Virtual Keysyms to actual keys on his or her"
echo "keyboard. This is normally done via the Motif Window Manager"
echo "(mwm). If the user is not using mwm, he or she may set the"
echo "defaultVirtualBindings resource to do the mappings. The"
echo "directory:"
echo ""
echo " ${TMP_DEST}/bindings"
echo ""
echo "contains examples of this for various platforms."
echo ""
AwaitEnter
else
echo ""
Log "No Links will be created on this system"
echo ""
AwaitEnter
fi
Clear
Title "Builder Xcessory Installation Cleanup"
echo ""
echo "Release notes are located in ${TMP_DEST}/RELEASE_NOTES."
echo "A Bug Report form is located in ${TMP_DEST}/BUG_REPORT."
if test "$WHERE" = "directory"
then
HELP="filerm"
HELPTITLE="Remove Files"
PromptUser "Remove files in ${FROM_DIR}?" "y"
case "$USERPROMPT"
in
[Yy] | [Yy][Ee] | [Yy][Ee][Ss])
Log "Removing local files..."
rm -rf ${FROM_DIR}/*
;;
*)
;;
esac
fi
cp $LOGFILE ${TMP_DEST}/BXINST_LOG.${HOSTNAME}
LOGFILE=${TMP_DEST}/BXINST_LOG.${HOSTNAME}
echo ""
if test "${NO_LMGR}" != "y"
then
PromptUser "Do you want to install the Flexible License Manager now?" "y"
case "$USERPROMPT"
in
[Yy] | [Yy][Ee] | [Yy][Ee][Ss])
${SH} ${TMP_DEST}/install.lm ${TMP_DEST}
;;
*)
;;
esac
fi
#
# See if we need to install the uil2ada converter
#
if test "${NO_ADA}" != "y"
then
if [ -d "$TMP_DEST/uil2ada" ]
then
PromptUser "Do you want to install the BX Ada module now?" "y"
case "$USERPROMPT"
in
[Yy] | [Yy][Ee] | [Yy][Ee][Ss])
${SH} ${TMP_DEST}/install.ada $TMP_DEST
;;
*)
;;
esac
fi
fi
Log "Installation complete"